package demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import demo.entity.Role;

public interface RoleMapper {
    int insert(Role record);

    int insertSelective(Role record);
    
    int update(Role record);
    
    int deleteById(@Param("id")Integer id);
    
    List<Role>findAll(Role role,@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
    
    Role findById(@Param("id") Integer id);
}